<?php if(!empty($comment)){?>
<ul class="ul_cmt">
    <?php foreach($comment as $item){?>
        <li>
            <p>
            	<span class="name_cmt">
                <?php 
                    if($item->info_user->fullname) 
                        echo $item->info_user->fullname;
                    else{
                        $array_email = explode("@",$item->info_user->email);
                        echo $array_email[0];
                    }
                ?>
                </span>
                <span style="font-style:italic"> đánh giá lúc <?php echo date("d-m-Y h:i",$item->created)?></span>
            </p>
            <p> <b> Đánh giá: </b>
                <?php for($i=1;$i <= $item->score;$i++){?>
                    <i class="fa fa-star"></i>
                <?php }?>
            </p>
            <p> <?php echo $item->content?> </p>
        </li> 
    <?php }?>
</ul>
<div class="paging_comment">
  <?php echo $paging?>
  <div class="clear"></div>
</div>
<?php if(!empty($paging)){?>
	<script language="javascript">
      $(".paging_comment a").off("click");
      $(".paging_comment a").click(function(){
        $.ajax({
            url:$(this).attr("href"),   
            success:function(result){
                $(".frame_cmt").html(result);
            }
        });	
        return false;
      });
    </script>
<?php }}?>